const Router = require('koa-router')

const { login ,success} = require("../controller/auth.constroller")
const {verifyLogin,verifyAuth} = require("../middleware/auth.middleware")



const authRouter = new Router();


authRouter.post("/login",verifyLogin,login) //登录模块
authRouter.get("/test",verifyAuth,success);//验证是否登录

module.exports = authRouter